package database.util;

import java.io.*;
import java.util.Properties;

public class Tables {
	
	public static String USER;
	public static String POST;
	public static String COMMENT;
	public static String FRIEND;
	public static String MESSAGE;
	public static String COLLECTION;
	public static String ADMIN;
	public static String BADWORD;
	public static String TODAYPOINT;
	public static String KEYWORD;
	public static String GAME;
	public static String BILL = "bill";
	public static void initialTables (InputStream is) {
		try {
			Properties props = new Properties();
			props.load(is);
			USER = props.getProperty("user");
			POST = props.getProperty("post");
			COMMENT = props.getProperty("comment");
			FRIEND = props.getProperty("friend");
			MESSAGE = props.getProperty("message");
			COLLECTION = props.getProperty("collection");
			ADMIN = props.getProperty("admin");
			BADWORD = props.getProperty("badword");
			TODAYPOINT = props.getProperty("todaypoint");
			KEYWORD = props.getProperty("keyword");
			GAME = props.getProperty("game");
			is.close();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
